package com.luna.cloudworm.product.service;

import com.atguigu.common.utils.PageUtils;
import com.luna.cloudworm.product.entity.CategoryEntity;
import com.luna.cloudworm.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author haitao
 * @email haitaoss@aliyun.com
 * @date 2020-06-13 22:46:15
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    Long[] findParentPath(Long cateLogId);

    void updateCascade(CategoryEntity category);

    /**
     * 查询所有的一级分类
     * @return
     */
    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catelog2Vo>> getCatalogJson();

}

